Skip to content

Conversation

@dennisvankekem
Copy link
Contributor

@dennisvankekem dennisvankekem commented Jan 6, 2026

tracks this bug: https://track.akamai.com/jira/browse/APL-1412

APL-1422 should also be fixed with this

@dennisvankekem
Copy link
Contributor Author

based on the assumption that clusterDomainSuffix is always present in settings

Copy link
Collaborator

@ferruhcihan ferruhcihan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall, the approach looks good 👍 I just noticed that some tests are failing in workloadUtils.test.ts, and there’s a small improvement needed in the URL checks instead of exact match.

post:
operationId: getWorkloadCatalog
x-eov-operation-handler: v1/workloadCatalog
x-aclSchema: Workload
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why schema is called workload if the resource is tWorkloadCatalog?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WorkloadCatalog is part of the Workload workflow

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mean we inherit the same ACL from Workload ? If so please add a comment. Otherwise it looks like a mistake.

@dennisvankekem dennisvankekem requested a review from Copilot January 9, 2026 09:15
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses bug APL-1412 by adding missing ACL schema declarations and replacing the isGiteaURL helper function with a direct string comparison against the cluster domain suffix.

  • Adds x-aclSchema: Workload to three API endpoints that were missing ACL schema declarations
  • Replaces isGiteaURL() function calls with explicit URL comparison using clusterDomainSuffix parameter
  • Threads the clusterDomainSuffix parameter through the workload utility functions

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
src/openapi/api.yaml Adds missing x-aclSchema: Workload declarations to workload catalog endpoints
src/utils/workloadUtils.ts Updates URL validation from isGiteaURL() to explicit domain suffix comparison
src/otomi-stack.ts Passes cluster?.domainSuffix to workload functions and normalizes import ordering

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@dennisvankekem
Copy link
Contributor Author

also fixes: APL-1422

@dennisvankekem dennisvankekem merged commit 8967d63 into main Jan 13, 2026
8 checks passed
@dennisvankekem dennisvankekem deleted the APL-1412 branch January 13, 2026 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants